<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        class Person {
            constructor(name, age) {
                    this.name = name
                    this.age = age
                }
                // 添加到我们Person的prototype上，专门用来给该类的所有实例使用    
            sayhi() {
                console.log('hello');
            }

            static fn1() {
                console.log('111');
            }
            static a = 10

        }

        const p1 = new Person('ss', '11')
        console.log(p1);
        console.dir(Person)
    </script>
</body>

</html>